package com.zhuoshi.controller;

import java.util.List;

import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

import com.zhuoshi.entity.Indent;
import com.zhuoshi.service.IndentService;

@Controller
@RequestMapping("indent")
public class IndentController {
	@Autowired
	private IndentService indentService;
	@RequiresPermissions("showIndent")
	@RequestMapping("showIndent")
	public String showIndent(Model model){
		List<Indent> lists = indentService.showIndent();
		model.addAttribute("lists", lists);
		return "showIndent";
	}
}
